function Cn(e, t) {
  const n = /* @__PURE__ */ Object.create(null), o = e.split(",");
  for (let r = 0; r < o.length; r++)
    n[o[r]] = !0;
  return t ? (r) => !!n[r.toLowerCase()] : (r) => !!n[r];
}
const T = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, $n = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], At = () => {
}, In = /^on[^a-z]/, Dn = (e) => In.test(e), $ = Object.assign, Rn = (e, t) => {
  const n = e.indexOf(t);
  n > -1 && e.splice(n, 1);
}, Pn = Object.prototype.hasOwnProperty, E = (e, t) => Pn.call(e, t), d = Array.isArray, G = (e) => Ae(e) === "[object Map]", Ft = (e) => Ae(e) === "[object Set]", b = (e) => typeof e == "function", C = (e) => typeof e == "string", ke = (e) => typeof e == "symbol", w = (e) => e !== null && typeof e == "object", Tn = (e) => w(e) && b(e.then) && b(e.catch), jt = Object.prototype.toString, Ae = (e) => jt.call(e), zt = (e) => Ae(e).slice(8, -1), Kt = (e) => Ae(e) === "[object Object]", et = (e) => C(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Ht = (e) => {
  const t = /* @__PURE__ */ Object.create(null);
  return (n) => t[n] || (t[n] = e(n));
}, Mn = /-(\w)/g, Se = Ht((e) => e.replace(Mn, (t, n) => n ? n.toUpperCase() : "")), xe = Ht(
  (e) => e.charAt(0).toUpperCase() + e.slice(1)
), le = (e, t) => !Object.is(e, t), An = (e, t, n) => {
  Object.defineProperty(e, t, {
    configurable: !0,
    enumerable: !1,
    value: n
  });
};
let dt;
const Be = () => dt || (dt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
function tt(e) {
  if (d(e)) {
    const t = {};
    for (let n = 0; n < e.length; n++) {
      const o = e[n], r = C(o) ? Kn(o) : tt(o);
      if (r)
        for (const s in r)
          t[s] = r[s];
    }
    return t;
  } else {
    if (C(e))
      return e;
    if (w(e))
      return e;
  }
}
const Fn = /;(?![^(]*\))/g, jn = /:([^]+)/, zn = /\/\*[^]*?\*\//g;
function Kn(e) {
  const t = {};
  return e.replace(zn, "").split(Fn).forEach((n) => {
    if (n) {
      const o = n.split(jn);
      o.length > 1 && (t[o[0].trim()] = o[1].trim());
    }
  }), t;
}
function nt(e) {
  let t = "";
  if (C(e))
    t = e;
  else if (d(e))
    for (let n = 0; n < e.length; n++) {
      const o = nt(e[n]);
      o && (t += o + " ");
    }
  else if (w(e))
    for (const n in e)
      e[n] && (t += n + " ");
  return t.trim();
}
const Ue = (e) => C(e) ? e : e == null ? "" : d(e) || w(e) && (e.toString === jt || !b(e.toString)) ? JSON.stringify(e, Bt, 2) : String(e), Bt = (e, t) => t && t.__v_isRef ? Bt(e, t.value) : G(t) ? {
  [`Map(${t.size})`]: [...t.entries()].reduce((n, [o, r]) => (n[`${o} =>`] = r, n), {})
} : Ft(t) ? {
  [`Set(${t.size})`]: [...t.values()]
} : w(t) && !d(t) && !Kt(t) ? String(t) : t;
function ht(e, ...t) {
  console.warn(`[Vue warn] ${e}`, ...t);
}
let Ut;
function Hn(e, t = Ut) {
  t && t.active && t.effects.push(e);
}
function Bn() {
  return Ut;
}
const ue = (e) => {
  const t = new Set(e);
  return t.w = 0, t.n = 0, t;
}, Wt = (e) => (e.w & B) > 0, Jt = (e) => (e.n & B) > 0, Un = ({ deps: e }) => {
  if (e.length)
    for (let t = 0; t < e.length; t++)
      e[t].w |= B;
}, Wn = (e) => {
  const { deps: t } = e;
  if (t.length) {
    let n = 0;
    for (let o = 0; o < t.length; o++) {
      const r = t[o];
      Wt(r) && !Jt(r) ? r.delete(e) : t[n++] = r, r.w &= ~B, r.n &= ~B;
    }
    t.length = n;
  }
}, We = /* @__PURE__ */ new WeakMap();
let oe = 0, B = 1;
const Je = 30;
let S;
const Y = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), qe = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
class Jn {
  constructor(t, n = null, o) {
    this.fn = t, this.scheduler = n, this.active = !0, this.deps = [], this.parent = void 0, Hn(this, o);
  }
  run() {
    if (!this.active)
      return this.fn();
    let t = S, n = H;
    for (; t; ) {
      if (t === this)
        return;
      t = t.parent;
    }
    try {
      return this.parent = S, S = this, H = !0, B = 1 << ++oe, oe <= Je ? Un(this) : _t(this), this.fn();
    } finally {
      oe <= Je && Wn(this), B = 1 << --oe, S = this.parent, H = n, this.parent = void 0, this.deferStop && this.stop();
    }
  }
  stop() {
    S === this ? this.deferStop = !0 : this.active && (_t(this), this.onStop && this.onStop(), this.active = !1);
  }
}
function _t(e) {
  const { deps: t } = e;
  if (t.length) {
    for (let n = 0; n < t.length; n++)
      t[n].delete(e);
    t.length = 0;
  }
}
let H = !0;
const qt = [];
function Lt() {
  qt.push(H), H = !1;
}
function Gt() {
  const e = qt.pop();
  H = e === void 0 ? !0 : e;
}
function v(e, t, n) {
  if (H && S) {
    let o = We.get(e);
    o || We.set(e, o = /* @__PURE__ */ new Map());
    let r = o.get(n);
    r || o.set(n, r = ue());
    const s = process.env.NODE_ENV !== "production" ? { effect: S, target: e, type: t, key: n } : void 0;
    Le(r, s);
  }
}
function Le(e, t) {
  let n = !1;
  oe <= Je ? Jt(e) || (e.n |= B, n = !Wt(e)) : n = !e.has(S), n && (e.add(S), S.deps.push(e), process.env.NODE_ENV !== "production" && S.onTrack && S.onTrack(
    $(
      {
        effect: S
      },
      t
    )
  ));
}
function U(e, t, n, o, r, s) {
  const i = We.get(e);
  if (!i)
    return;
  let c = [];
  if (t === "clear")
    c = [...i.values()];
  else if (n === "length" && d(e)) {
    const a = Number(o);
    i.forEach((h, l) => {
      (l === "length" || l >= a) && c.push(h);
    });
  } else
    switch (n !== void 0 && c.push(i.get(n)), t) {
      case "add":
        d(e) ? et(n) && c.push(i.get("length")) : (c.push(i.get(Y)), G(e) && c.push(i.get(qe)));
        break;
      case "delete":
        d(e) || (c.push(i.get(Y)), G(e) && c.push(i.get(qe)));
        break;
      case "set":
        G(e) && c.push(i.get(Y));
        break;
    }
  const u = process.env.NODE_ENV !== "production" ? { target: e, type: t, key: n, newValue: o, oldValue: r, oldTarget: s } : void 0;
  if (c.length === 1)
    c[0] && (process.env.NODE_ENV !== "production" ? ee(c[0], u) : ee(c[0]));
  else {
    const a = [];
    for (const h of c)
      h && a.push(...h);
    process.env.NODE_ENV !== "production" ? ee(ue(a), u) : ee(ue(a));
  }
}
function ee(e, t) {
  const n = d(e) ? e : [...e];
  for (const o of n)
    o.computed && gt(o, t);
  for (const o of n)
    o.computed || gt(o, t);
}
function gt(e, t) {
  (e !== S || e.allowRecurse) && (process.env.NODE_ENV !== "production" && e.onTrigger && e.onTrigger($({ effect: e }, t)), e.scheduler ? e.scheduler() : e.run());
}
const qn = /* @__PURE__ */ Cn("__proto__,__v_isRef,__isVue"), Yt = new Set(
  /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ke)
), Ln = /* @__PURE__ */ rt(), Gn = /* @__PURE__ */ rt(!0), Yn = /* @__PURE__ */ rt(!0, !0), mt = /* @__PURE__ */ Qn();
function Qn() {
  const e = {};
  return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
    e[t] = function(...n) {
      const o = p(this);
      for (let s = 0, i = this.length; s < i; s++)
        v(o, "get", s + "");
      const r = o[t](...n);
      return r === -1 || r === !1 ? o[t](...n.map(p)) : r;
    };
  }), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
    e[t] = function(...n) {
      Lt();
      const o = p(this)[t].apply(this, n);
      return Gt(), o;
    };
  }), e;
}
function Xn(e) {
  const t = p(this);
  return v(t, "has", e), t.hasOwnProperty(e);
}
function rt(e = !1, t = !1) {
  return function(o, r, s) {
    if (r === "__v_isReactive")
      return !e;
    if (r === "__v_isReadonly")
      return e;
    if (r === "__v_isShallow")
      return t;
    if (r === "__v_raw" && s === (e ? t ? en : kt : t ? dr : Zt).get(o))
      return o;
    const i = d(o);
    if (!e) {
      if (i && E(mt, r))
        return Reflect.get(mt, r, s);
      if (r === "hasOwnProperty")
        return Xn;
    }
    const c = Reflect.get(o, r, s);
    return (ke(r) ? Yt.has(r) : qn(r)) || (e || v(o, "get", r), t) ? c : O(c) ? i && et(r) ? c : c.value : w(c) ? e ? nn(c) : tn(c) : c;
  };
}
const Zn = /* @__PURE__ */ kn();
function kn(e = !1) {
  return function(n, o, r, s) {
    let i = n[o];
    if (W(i) && O(i) && !O(r))
      return !1;
    if (!e && (!Ve(r) && !W(r) && (i = p(i), r = p(r)), !d(n) && O(i) && !O(r)))
      return i.value = r, !0;
    const c = d(n) && et(o) ? Number(o) < n.length : E(n, o), u = Reflect.set(n, o, r, s);
    return n === p(s) && (c ? le(r, i) && U(n, "set", o, r, i) : U(n, "add", o, r)), u;
  };
}
function er(e, t) {
  const n = E(e, t), o = e[t], r = Reflect.deleteProperty(e, t);
  return r && n && U(e, "delete", t, void 0, o), r;
}
function tr(e, t) {
  const n = Reflect.has(e, t);
  return (!ke(t) || !Yt.has(t)) && v(e, "has", t), n;
}
function nr(e) {
  return v(e, "iterate", d(e) ? "length" : Y), Reflect.ownKeys(e);
}
const rr = {
  get: Ln,
  set: Zn,
  deleteProperty: er,
  has: tr,
  ownKeys: nr
}, Qt = {
  get: Gn,
  set(e, t) {
    return process.env.NODE_ENV !== "production" && ht(
      `Set operation on key "${String(t)}" failed: target is readonly.`,
      e
    ), !0;
  },
  deleteProperty(e, t) {
    return process.env.NODE_ENV !== "production" && ht(
      `Delete operation on key "${String(t)}" failed: target is readonly.`,
      e
    ), !0;
  }
}, or = /* @__PURE__ */ $(
  {},
  Qt,
  {
    get: Yn
  }
), ot = (e) => e, Fe = (e) => Reflect.getPrototypeOf(e);
function ge(e, t, n = !1, o = !1) {
  e = e.__v_raw;
  const r = p(e), s = p(t);
  n || (t !== s && v(r, "get", t), v(r, "get", s));
  const { has: i } = Fe(r), c = o ? ot : n ? ct : ae;
  if (i.call(r, t))
    return c(e.get(t));
  if (i.call(r, s))
    return c(e.get(s));
  e !== r && e.get(t);
}
function me(e, t = !1) {
  const n = this.__v_raw, o = p(n), r = p(e);
  return t || (e !== r && v(o, "has", e), v(o, "has", r)), e === r ? n.has(e) : n.has(e) || n.has(r);
}
function Ee(e, t = !1) {
  return e = e.__v_raw, !t && v(p(e), "iterate", Y), Reflect.get(e, "size", e);
}
function Et(e) {
  e = p(e);
  const t = p(this);
  return Fe(t).has.call(t, e) || (t.add(e), U(t, "add", e, e)), this;
}
function bt(e, t) {
  t = p(t);
  const n = p(this), { has: o, get: r } = Fe(n);
  let s = o.call(n, e);
  s ? process.env.NODE_ENV !== "production" && Xt(n, o, e) : (e = p(e), s = o.call(n, e));
  const i = r.call(n, e);
  return n.set(e, t), s ? le(t, i) && U(n, "set", e, t, i) : U(n, "add", e, t), this;
}
function Nt(e) {
  const t = p(this), { has: n, get: o } = Fe(t);
  let r = n.call(t, e);
  r ? process.env.NODE_ENV !== "production" && Xt(t, n, e) : (e = p(e), r = n.call(t, e));
  const s = o ? o.call(t, e) : void 0, i = t.delete(e);
  return r && U(t, "delete", e, void 0, s), i;
}
function wt() {
  const e = p(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? G(e) ? new Map(e) : new Set(e) : void 0, o = e.clear();
  return t && U(e, "clear", void 0, void 0, n), o;
}
function be(e, t) {
  return function(o, r) {
    const s = this, i = s.__v_raw, c = p(i), u = t ? ot : e ? ct : ae;
    return !e && v(c, "iterate", Y), i.forEach((a, h) => o.call(r, u(a), u(h), s));
  };
}
function Ne(e, t, n) {
  return function(...o) {
    const r = this.__v_raw, s = p(r), i = G(s), c = e === "entries" || e === Symbol.iterator && i, u = e === "keys" && i, a = r[e](...o), h = n ? ot : t ? ct : ae;
    return !t && v(
      s,
      "iterate",
      u ? qe : Y
    ), {
      // iterator protocol
      next() {
        const { value: l, done: f } = a.next();
        return f ? { value: l, done: f } : {
          value: c ? [h(l[0]), h(l[1])] : h(l),
          done: f
        };
      },
      // iterable protocol
      [Symbol.iterator]() {
        return this;
      }
    };
  };
}
function F(e) {
  return function(...t) {
    if (process.env.NODE_ENV !== "production") {
      const n = t[0] ? `on key "${t[0]}" ` : "";
      console.warn(
        `${xe(e)} operation ${n}failed: target is readonly.`,
        p(this)
      );
    }
    return e === "delete" ? !1 : this;
  };
}
function sr() {
  const e = {
    get(s) {
      return ge(this, s);
    },
    get size() {
      return Ee(this);
    },
    has: me,
    add: Et,
    set: bt,
    delete: Nt,
    clear: wt,
    forEach: be(!1, !1)
  }, t = {
    get(s) {
      return ge(this, s, !1, !0);
    },
    get size() {
      return Ee(this);
    },
    has: me,
    add: Et,
    set: bt,
    delete: Nt,
    clear: wt,
    forEach: be(!1, !0)
  }, n = {
    get(s) {
      return ge(this, s, !0);
    },
    get size() {
      return Ee(this, !0);
    },
    has(s) {
      return me.call(this, s, !0);
    },
    add: F("add"),
    set: F("set"),
    delete: F("delete"),
    clear: F("clear"),
    forEach: be(!0, !1)
  }, o = {
    get(s) {
      return ge(this, s, !0, !0);
    },
    get size() {
      return Ee(this, !0);
    },
    has(s) {
      return me.call(this, s, !0);
    },
    add: F("add"),
    set: F("set"),
    delete: F("delete"),
    clear: F("clear"),
    forEach: be(!0, !0)
  };
  return ["keys", "values", "entries", Symbol.iterator].forEach((s) => {
    e[s] = Ne(
      s,
      !1,
      !1
    ), n[s] = Ne(
      s,
      !0,
      !1
    ), t[s] = Ne(
      s,
      !1,
      !0
    ), o[s] = Ne(
      s,
      !0,
      !0
    );
  }), [
    e,
    n,
    t,
    o
  ];
}
const [
  ir,
  cr,
  lr,
  ur
] = /* @__PURE__ */ sr();
function st(e, t) {
  const n = t ? e ? ur : lr : e ? cr : ir;
  return (o, r, s) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? o : Reflect.get(
    E(n, r) && r in o ? n : o,
    r,
    s
  );
}
const ar = {
  get: /* @__PURE__ */ st(!1, !1)
}, fr = {
  get: /* @__PURE__ */ st(!0, !1)
}, pr = {
  get: /* @__PURE__ */ st(!0, !0)
};
function Xt(e, t, n) {
  const o = p(n);
  if (o !== n && t.call(e, o)) {
    const r = zt(e);
    console.warn(
      `Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
    );
  }
}
const Zt = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap();
function hr(e) {
  switch (e) {
    case "Object":
    case "Array":
      return 1;
    case "Map":
    case "Set":
    case "WeakMap":
    case "WeakSet":
      return 2;
    default:
      return 0;
  }
}
function _r(e) {
  return e.__v_skip || !Object.isExtensible(e) ? 0 : hr(zt(e));
}
function tn(e) {
  return W(e) ? e : it(
    e,
    !1,
    rr,
    ar,
    Zt
  );
}
function nn(e) {
  return it(
    e,
    !0,
    Qt,
    fr,
    kt
  );
}
function we(e) {
  return it(
    e,
    !0,
    or,
    pr,
    en
  );
}
function it(e, t, n, o, r) {
  if (!w(e))
    return process.env.NODE_ENV !== "production" && console.warn(`value cannot be made reactive: ${String(e)}`), e;
  if (e.__v_raw && !(t && e.__v_isReactive))
    return e;
  const s = r.get(e);
  if (s)
    return s;
  const i = _r(e);
  if (i === 0)
    return e;
  const c = new Proxy(
    e,
    i === 2 ? o : n
  );
  return r.set(e, c), c;
}
function Q(e) {
  return W(e) ? Q(e.__v_raw) : !!(e && e.__v_isReactive);
}
function W(e) {
  return !!(e && e.__v_isReadonly);
}
function Ve(e) {
  return !!(e && e.__v_isShallow);
}
function Ge(e) {
  return Q(e) || W(e);
}
function p(e) {
  const t = e && e.__v_raw;
  return t ? p(t) : e;
}
function gr(e) {
  return An(e, "__v_skip", !0), e;
}
const ae = (e) => w(e) ? tn(e) : e, ct = (e) => w(e) ? nn(e) : e;
function mr(e) {
  H && S && (e = p(e), process.env.NODE_ENV !== "production" ? Le(e.dep || (e.dep = ue()), {
    target: e,
    type: "get",
    key: "value"
  }) : Le(e.dep || (e.dep = ue())));
}
function Er(e, t) {
  e = p(e);
  const n = e.dep;
  n && (process.env.NODE_ENV !== "production" ? ee(n, {
    target: e,
    type: "set",
    key: "value",
    newValue: t
  }) : ee(n));
}
function O(e) {
  return !!(e && e.__v_isRef === !0);
}
function br(e) {
  return Nr(e, !1);
}
function Nr(e, t) {
  return O(e) ? e : new wr(e, t);
}
class wr {
  constructor(t, n) {
    this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : p(t), this._value = n ? t : ae(t);
  }
  get value() {
    return mr(this), this._value;
  }
  set value(t) {
    const n = this.__v_isShallow || Ve(t) || W(t);
    t = n ? t : p(t), le(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : ae(t), Er(this, t));
  }
}
function j(e) {
  return O(e) ? e.value : e;
}
const vr = {
  get: (e, t, n) => j(Reflect.get(e, t, n)),
  set: (e, t, n, o) => {
    const r = e[t];
    return O(r) && !O(n) ? (r.value = n, !0) : Reflect.set(e, t, n, o);
  }
};
function Or(e) {
  return Q(e) ? e : new Proxy(e, vr);
}
const X = [];
function yr(e) {
  X.push(e);
}
function Sr() {
  X.pop();
}
function _(e, ...t) {
  if (process.env.NODE_ENV === "production")
    return;
  Lt();
  const n = X.length ? X[X.length - 1].component : null, o = n && n.appContext.config.warnHandler, r = xr();
  if (o)
    Z(
      o,
      n,
      11,
      [
        e + t.join(""),
        n && n.proxy,
        r.map(
          ({ vnode: s }) => `at <${yn(n, s.type)}>`
        ).join(`
`),
        r
      ]
    );
  else {
    const s = [`[Vue warn]: ${e}`, ...t];
    r.length && s.push(`
`, ...Vr(r)), console.warn(...s);
  }
  Gt();
}
function xr() {
  let e = X[X.length - 1];
  if (!e)
    return [];
  const t = [];
  for (; e; ) {
    const n = t[0];
    n && n.vnode === e ? n.recurseCount++ : t.push({
      vnode: e,
      recurseCount: 0
    });
    const o = e.component && e.component.parent;
    e = o && o.vnode;
  }
  return t;
}
function Vr(e) {
  const t = [];
  return e.forEach((n, o) => {
    t.push(...o === 0 ? [] : [`
`], ...Cr(n));
  }), t;
}
function Cr({ vnode: e, recurseCount: t }) {
  const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, r = ` at <${yn(
    e.component,
    e.type,
    o
  )}`, s = ">" + n;
  return e.props ? [r, ...$r(e.props), s] : [r + s];
}
function $r(e) {
  const t = [], n = Object.keys(e);
  return n.slice(0, 3).forEach((o) => {
    t.push(...rn(o, e[o]));
  }), n.length > 3 && t.push(" ..."), t;
}
function rn(e, t, n) {
  return C(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : O(t) ? (t = rn(e, p(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : b(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = p(t), n ? t : [`${e}=`, t]);
}
const on = {
  sp: "serverPrefetch hook",
  bc: "beforeCreate hook",
  c: "created hook",
  bm: "beforeMount hook",
  m: "mounted hook",
  bu: "beforeUpdate hook",
  u: "updated",
  bum: "beforeUnmount hook",
  um: "unmounted hook",
  a: "activated hook",
  da: "deactivated hook",
  ec: "errorCaptured hook",
  rtc: "renderTracked hook",
  rtg: "renderTriggered hook",
  0: "setup function",
  1: "render function",
  2: "watcher getter",
  3: "watcher callback",
  4: "watcher cleanup function",
  5: "native event handler",
  6: "component event handler",
  7: "vnode hook",
  8: "directive hook",
  9: "transition hook",
  10: "app errorHandler",
  11: "app warnHandler",
  12: "ref function",
  13: "async component loader",
  14: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"
};
function Z(e, t, n, o) {
  let r;
  try {
    r = o ? e(...o) : e();
  } catch (s) {
    sn(s, t, n);
  }
  return r;
}
function Ye(e, t, n, o) {
  if (b(e)) {
    const s = Z(e, t, n, o);
    return s && Tn(s) && s.catch((i) => {
      sn(i, t, n);
    }), s;
  }
  const r = [];
  for (let s = 0; s < e.length; s++)
    r.push(Ye(e[s], t, n, o));
  return r;
}
function sn(e, t, n, o = !0) {
  const r = t ? t.vnode : null;
  if (t) {
    let s = t.parent;
    const i = t.proxy, c = process.env.NODE_ENV !== "production" ? on[n] : n;
    for (; s; ) {
      const a = s.ec;
      if (a) {
        for (let h = 0; h < a.length; h++)
          if (a[h](e, i, c) === !1)
            return;
      }
      s = s.parent;
    }
    const u = t.appContext.config.errorHandler;
    if (u) {
      Z(
        u,
        null,
        10,
        [e, i, c]
      );
      return;
    }
  }
  Ir(e, n, r, o);
}
function Ir(e, t, n, o = !0) {
  if (process.env.NODE_ENV !== "production") {
    const r = on[t];
    if (n && yr(n), _(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && Sr(), o)
      throw e;
    console.error(e);
  } else
    console.error(e);
}
let Ce = !1, Qe = !1;
const D = [];
let K = 0;
const ne = [];
let P = null, z = 0;
const cn = /* @__PURE__ */ Promise.resolve();
let lt = null;
const Dr = 100;
function Rr(e) {
  const t = lt || cn;
  return e ? t.then(this ? e.bind(this) : e) : t;
}
function Pr(e) {
  let t = K + 1, n = D.length;
  for (; t < n; ) {
    const o = t + n >>> 1;
    fe(D[o]) < e ? t = o + 1 : n = o;
  }
  return t;
}
function ut(e) {
  (!D.length || !D.includes(
    e,
    Ce && e.allowRecurse ? K + 1 : K
  )) && (e.id == null ? D.push(e) : D.splice(Pr(e.id), 0, e), ln());
}
function ln() {
  !Ce && !Qe && (Qe = !0, lt = cn.then(an));
}
function un(e) {
  d(e) ? ne.push(...e) : (!P || !P.includes(
    e,
    e.allowRecurse ? z + 1 : z
  )) && ne.push(e), ln();
}
function Tr(e) {
  if (ne.length) {
    const t = [...new Set(ne)];
    if (ne.length = 0, P) {
      P.push(...t);
      return;
    }
    for (P = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), P.sort((n, o) => fe(n) - fe(o)), z = 0; z < P.length; z++)
      process.env.NODE_ENV !== "production" && fn(e, P[z]) || P[z]();
    P = null, z = 0;
  }
}
const fe = (e) => e.id == null ? 1 / 0 : e.id, Mr = (e, t) => {
  const n = fe(e) - fe(t);
  if (n === 0) {
    if (e.pre && !t.pre)
      return -1;
    if (t.pre && !e.pre)
      return 1;
  }
  return n;
};
function an(e) {
  Qe = !1, Ce = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), D.sort(Mr);
  const t = process.env.NODE_ENV !== "production" ? (n) => fn(e, n) : At;
  try {
    for (K = 0; K < D.length; K++) {
      const n = D[K];
      if (n && n.active !== !1) {
        if (process.env.NODE_ENV !== "production" && t(n))
          continue;
        Z(n, null, 14);
      }
    }
  } finally {
    K = 0, D.length = 0, Tr(e), Ce = !1, lt = null, (D.length || ne.length) && an(e);
  }
}
function fn(e, t) {
  if (!e.has(t))
    e.set(t, 1);
  else {
    const n = e.get(t);
    if (n > Dr) {
      const o = t.ownerInstance, r = o && pt(o.type);
      return _(
        `Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`
      ), !0;
    } else
      e.set(t, n + 1);
  }
}
const re = /* @__PURE__ */ new Set();
process.env.NODE_ENV !== "production" && (Be().__VUE_HMR_RUNTIME__ = {
  createRecord: ze(Ar),
  rerender: ze(Fr),
  reload: ze(jr)
});
const $e = /* @__PURE__ */ new Map();
function Ar(e, t) {
  return $e.has(e) ? !1 : ($e.set(e, {
    initialDef: ie(t),
    instances: /* @__PURE__ */ new Set()
  }), !0);
}
function ie(e) {
  return Sn(e) ? e.__vccOpts : e;
}
function Fr(e, t) {
  const n = $e.get(e);
  n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
    t && (o.render = t, ie(o.type).render = t), o.renderCache = [], o.update();
  }));
}
function jr(e, t) {
  const n = $e.get(e);
  if (!n)
    return;
  t = ie(t), vt(n.initialDef, t);
  const o = [...n.instances];
  for (const r of o) {
    const s = ie(r.type);
    re.has(s) || (s !== n.initialDef && vt(s, t), re.add(s)), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (re.add(s), r.ceReload(t.styles), re.delete(s)) : r.parent ? ut(r.parent.update) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
      "[HMR] Root or manually mounted instance modified. Full reload required."
    );
  }
  un(() => {
    for (const r of o)
      re.delete(
        ie(r.type)
      );
  });
}
function vt(e, t) {
  $(e, t);
  for (const n in e)
    n !== "__file" && !(n in t) && delete e[n];
}
function ze(e) {
  return (t, n) => {
    try {
      return e(t, n);
    } catch (o) {
      console.error(o), console.warn(
        "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
      );
    }
  };
}
function zr(e, ...t) {
}
const Kr = /* @__PURE__ */ Hr(
  "component:updated"
  /* COMPONENT_UPDATED */
);
function Hr(e) {
  return (t) => {
    zr(
      e,
      t.appContext.app,
      t.uid,
      t.parent ? t.parent.uid : void 0,
      t
    );
  };
}
let N = null, pn = null;
function Ot(e) {
  const t = N;
  return N = e, pn = e && e.type.__scopeId || null, t;
}
function M(e, t = N, n) {
  if (!t || e._n)
    return e;
  const o = (...r) => {
    o._d && Rt(-1);
    const s = Ot(t);
    let i;
    try {
      i = e(...r);
    } finally {
      Ot(s), o._d && Rt(1);
    }
    return process.env.NODE_ENV !== "production" && Kr(t), i;
  };
  return o._n = !0, o._c = !0, o._d = !0, o;
}
const Br = (e) => e.__isSuspense;
function Ur(e, t) {
  t && t.pendingBranch ? d(e) ? t.effects.push(...e) : t.effects.push(e) : un(e);
}
const ve = {};
function yt(e, t, n) {
  return process.env.NODE_ENV !== "production" && !b(t) && _(
    "`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
  ), dn(e, t, n);
}
function dn(e, t, { immediate: n, deep: o, flush: r, onTrack: s, onTrigger: i } = T) {
  var c;
  process.env.NODE_ENV !== "production" && !t && (n !== void 0 && _(
    'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
  ), o !== void 0 && _(
    'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
  ));
  const u = (m) => {
    _(
      "Invalid watch source: ",
      m,
      "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
    );
  }, a = Bn() === ((c = J) == null ? void 0 : c.scope) ? J : null;
  let h, l = !1, f = !1;
  if (O(e) ? (h = () => e.value, l = Ve(e)) : Q(e) ? (h = () => e, o = !0) : d(e) ? (f = !0, l = e.some((m) => Q(m) || Ve(m)), h = () => e.map((m) => {
    if (O(m))
      return m.value;
    if (Q(m))
      return te(m);
    if (b(m))
      return Z(m, a, 2);
    process.env.NODE_ENV !== "production" && u(m);
  })) : b(e) ? t ? h = () => Z(e, a, 2) : h = () => {
    if (!(a && a.isUnmounted))
      return g && g(), Ye(
        e,
        a,
        3,
        [x]
      );
  } : (h = At, process.env.NODE_ENV !== "production" && u(e)), t && o) {
    const m = h;
    h = () => te(m());
  }
  let g, x = (m) => {
    g = I.onStop = () => {
      Z(m, a, 4);
    };
  }, V = f ? new Array(e.length).fill(ve) : ve;
  const q = () => {
    if (I.active)
      if (t) {
        const m = I.run();
        (o || l || (f ? m.some(
          (xn, Vn) => le(xn, V[Vn])
        ) : le(m, V))) && (g && g(), Ye(t, a, 3, [
          m,
          // pass undefined as the old value when it's changed for the first time
          V === ve ? void 0 : f && V[0] === ve ? [] : V,
          x
        ]), V = m);
      } else
        I.run();
  };
  q.allowRecurse = !!t;
  let _e;
  r === "sync" ? _e = q : r === "post" ? _e = () => Dt(q, a && a.suspense) : (q.pre = !0, a && (q.id = a.uid), _e = () => ut(q));
  const I = new Jn(h, _e);
  return process.env.NODE_ENV !== "production" && (I.onTrack = s, I.onTrigger = i), t ? n ? q() : V = I.run() : r === "post" ? Dt(
    I.run.bind(I),
    a && a.suspense
  ) : I.run(), () => {
    I.stop(), a && a.scope && Rn(a.scope.effects, I);
  };
}
function Wr(e, t, n) {
  const o = this.proxy, r = C(e) ? e.includes(".") ? Jr(o, e) : () => o[e] : e.bind(o, o);
  let s;
  b(t) ? s = t : (s = t.handler, n = t);
  const i = J;
  Tt(this);
  const c = dn(r, s.bind(o), n);
  return i ? Tt(i) : ao(), c;
}
function Jr(e, t) {
  const n = t.split(".");
  return () => {
    let o = e;
    for (let r = 0; r < n.length && o; r++)
      o = o[n[r]];
    return o;
  };
}
function te(e, t) {
  if (!w(e) || e.__v_skip || (t = t || /* @__PURE__ */ new Set(), t.has(e)))
    return e;
  if (t.add(e), O(e))
    te(e.value, t);
  else if (d(e))
    for (let n = 0; n < e.length; n++)
      te(e[n], t);
  else if (Ft(e) || G(e))
    e.forEach((n) => {
      te(n, t);
    });
  else if (Kt(e))
    for (const n in e)
      te(e[n], t);
  return e;
}
function hn(e, t) {
  return b(e) ? (
    // #8326: extend call and options.name access are considered side-effects
    // by Rollup, so we have to wrap it in a pure-annotated IIFE.
    /* @__PURE__ */ (() => $({ name: e.name }, t, { setup: e }))()
  ) : e;
}
const qr = (e) => !!e.type.__asyncLoader, Xe = "components";
function Ie(e, t) {
  return Gr(Xe, e, !0, t) || e;
}
const Lr = Symbol.for("v-ndc");
function Gr(e, t, n = !0, o = !1) {
  const r = N || J;
  if (r) {
    const s = r.type;
    if (e === Xe) {
      const c = pt(
        s,
        !1
        /* do not include inferred name to avoid breaking existing code */
      );
      if (c && (c === t || c === Se(t) || c === xe(Se(t))))
        return s;
    }
    const i = (
      // local registration
      // check instance[type] first which is resolved for options API
      St(r[e] || s[e], t) || // global registration
      St(r.appContext[e], t)
    );
    if (!i && o)
      return s;
    if (process.env.NODE_ENV !== "production" && n && !i) {
      const c = e === Xe ? `
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : "";
      _(`Failed to resolve ${e.slice(0, -1)}: ${t}${c}`);
    }
    return i;
  } else
    process.env.NODE_ENV !== "production" && _(
      `resolve${xe(e.slice(0, -1))} can only be used in render() or setup().`
    );
}
function St(e, t) {
  return e && (e[t] || e[Se(t)] || e[xe(Se(t))]);
}
function Yr(e, t, n, o) {
  let r;
  const s = n && n[o];
  if (d(e) || C(e)) {
    r = new Array(e.length);
    for (let i = 0, c = e.length; i < c; i++)
      r[i] = t(e[i], i, void 0, s && s[i]);
  } else if (typeof e == "number") {
    process.env.NODE_ENV !== "production" && !Number.isInteger(e) && _(`The v-for range expect an integer value but got ${e}.`), r = new Array(e);
    for (let i = 0; i < e; i++)
      r[i] = t(i + 1, i, void 0, s && s[i]);
  } else if (w(e))
    if (e[Symbol.iterator])
      r = Array.from(
        e,
        (i, c) => t(i, c, void 0, s && s[c])
      );
    else {
      const i = Object.keys(e);
      r = new Array(i.length);
      for (let c = 0, u = i.length; c < u; c++) {
        const a = i[c];
        r[c] = t(e[a], a, c, s && s[c]);
      }
    }
  else
    r = [];
  return n && (n[o] = r), r;
}
function xt(e, t) {
  for (let n = 0; n < t.length; n++) {
    const o = t[n];
    if (d(o))
      for (let r = 0; r < o.length; r++)
        e[o[r].name] = o[r].fn;
    else
      o && (e[o.name] = o.key ? (...r) => {
        const s = o.fn(...r);
        return s && (s.key = o.key), s;
      } : o.fn);
  }
  return e;
}
function L(e, t, n = {}, o, r) {
  if (N.isCE || N.parent && qr(N.parent) && N.parent.isCE)
    return t !== "default" && (n.name = t), je("slot", n, o && o());
  let s = e[t];
  process.env.NODE_ENV !== "production" && s && s.length > 1 && (_(
    "SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."
  ), s = () => []), s && s._c && (s._d = !1), A();
  const i = s && _n(s(n)), c = de(
    he,
    {
      key: n.key || // slot content array of a dynamic conditional slot may have a branch
      // key attached in the `createSlots` helper, respect that
      i && i.key || `_${t}`
    },
    i || (o ? o() : []),
    i && e._ === 1 ? 64 : -2
  );
  return !r && c.scopeId && (c.slotScopeIds = [c.scopeId + "-s"]), s && s._c && (s._d = !0), c;
}
function _n(e) {
  return e.some((t) => bn(t) ? !(t.type === mn || t.type === he && !_n(t.children)) : !0) ? e : null;
}
const Ze = (e) => e ? fo(e) ? _o(e) || e.proxy : Ze(e.parent) : null, ce = (
  // Move PURE marker to new line to workaround compiler discarding it
  // due to type annotation
  /* @__PURE__ */ $(/* @__PURE__ */ Object.create(null), {
    $: (e) => e,
    $el: (e) => e.vnode.el,
    $data: (e) => e.data,
    $props: (e) => process.env.NODE_ENV !== "production" ? we(e.props) : e.props,
    $attrs: (e) => process.env.NODE_ENV !== "production" ? we(e.attrs) : e.attrs,
    $slots: (e) => process.env.NODE_ENV !== "production" ? we(e.slots) : e.slots,
    $refs: (e) => process.env.NODE_ENV !== "production" ? we(e.refs) : e.refs,
    $parent: (e) => Ze(e.parent),
    $root: (e) => Ze(e.root),
    $emit: (e) => e.emit,
    $options: (e) => kr(e),
    $forceUpdate: (e) => e.f || (e.f = () => ut(e.update)),
    $nextTick: (e) => e.n || (e.n = Rr.bind(e.proxy)),
    $watch: (e) => Wr.bind(e)
  })
), Qr = (e) => e === "_" || e === "$", Ke = (e, t) => e !== T && !e.__isScriptSetup && E(e, t), Xr = {
  get({ _: e }, t) {
    const { ctx: n, setupState: o, data: r, props: s, accessCache: i, type: c, appContext: u } = e;
    if (process.env.NODE_ENV !== "production" && t === "__isVue")
      return !0;
    let a;
    if (t[0] !== "$") {
      const g = i[t];
      if (g !== void 0)
        switch (g) {
          case 1:
            return o[t];
          case 2:
            return r[t];
          case 4:
            return n[t];
          case 3:
            return s[t];
        }
      else {
        if (Ke(o, t))
          return i[t] = 1, o[t];
        if (r !== T && E(r, t))
          return i[t] = 2, r[t];
        if (
          // only cache other properties when instance has declared (thus stable)
          // props
          (a = e.propsOptions[0]) && E(a, t)
        )
          return i[t] = 3, s[t];
        if (n !== T && E(n, t))
          return i[t] = 4, n[t];
        i[t] = 0;
      }
    }
    const h = ce[t];
    let l, f;
    if (h)
      return t === "$attrs" ? (v(e, "get", t), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && v(e, "get", t), h(e);
    if (
      // css module (injected by vue-loader)
      (l = c.__cssModules) && (l = l[t])
    )
      return l;
    if (n !== T && E(n, t))
      return i[t] = 4, n[t];
    if (
      // global properties
      f = u.config.globalProperties, E(f, t)
    )
      return f[t];
    process.env.NODE_ENV !== "production" && N && (!C(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
    // to infinite warning loop
    t.indexOf("__v") !== 0) && (r !== T && Qr(t[0]) && E(r, t) ? _(
      `Property ${JSON.stringify(
        t
      )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
    ) : e === N && _(
      `Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`
    ));
  },
  set({ _: e }, t, n) {
    const { data: o, setupState: r, ctx: s } = e;
    return Ke(r, t) ? (r[t] = n, !0) : process.env.NODE_ENV !== "production" && r.__isScriptSetup && E(r, t) ? (_(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : o !== T && E(o, t) ? (o[t] = n, !0) : E(e.props, t) ? (process.env.NODE_ENV !== "production" && _(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && _(
      `Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
    ), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(s, t, {
      enumerable: !0,
      configurable: !0,
      value: n
    }) : s[t] = n, !0);
  },
  has({
    _: { data: e, setupState: t, accessCache: n, ctx: o, appContext: r, propsOptions: s }
  }, i) {
    let c;
    return !!n[i] || e !== T && E(e, i) || Ke(t, i) || (c = s[0]) && E(c, i) || E(o, i) || E(ce, i) || E(r.config.globalProperties, i);
  },
  defineProperty(e, t, n) {
    return n.get != null ? e._.accessCache[t] = 0 : E(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
  }
};
process.env.NODE_ENV !== "production" && (Xr.ownKeys = (e) => (_(
  "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
), Reflect.ownKeys(e)));
function gn() {
  return Zr().slots;
}
function Zr() {
  const e = uo();
  return process.env.NODE_ENV !== "production" && !e && _("useContext() called without active instance."), e.setupContext || (e.setupContext = ho(e));
}
function Vt(e) {
  return d(e) ? e.reduce(
    (t, n) => (t[n] = null, t),
    {}
  ) : e;
}
function kr(e) {
  const t = e.type, { mixins: n, extends: o } = t, {
    mixins: r,
    optionsCache: s,
    config: { optionMergeStrategies: i }
  } = e.appContext, c = s.get(t);
  let u;
  return c ? u = c : !r.length && !n && !o ? u = t : (u = {}, r.length && r.forEach(
    (a) => De(u, a, i, !0)
  ), De(u, t, i)), w(t) && s.set(t, u), u;
}
function De(e, t, n, o = !1) {
  const { mixins: r, extends: s } = t;
  s && De(e, s, n, !0), r && r.forEach(
    (i) => De(e, i, n, !0)
  );
  for (const i in t)
    if (o && i === "expose")
      process.env.NODE_ENV !== "production" && _(
        '"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
      );
    else {
      const c = eo[i] || n && n[i];
      e[i] = c ? c(e[i], t[i]) : t[i];
    }
  return e;
}
const eo = {
  data: Ct,
  props: It,
  emits: It,
  // objects
  methods: se,
  computed: se,
  // lifecycle
  beforeCreate: y,
  created: y,
  beforeMount: y,
  mounted: y,
  beforeUpdate: y,
  updated: y,
  beforeDestroy: y,
  beforeUnmount: y,
  destroyed: y,
  unmounted: y,
  activated: y,
  deactivated: y,
  errorCaptured: y,
  serverPrefetch: y,
  // assets
  components: se,
  directives: se,
  // watch
  watch: no,
  // provide / inject
  provide: Ct,
  inject: to
};
function Ct(e, t) {
  return t ? e ? function() {
    return $(
      b(e) ? e.call(this, this) : e,
      b(t) ? t.call(this, this) : t
    );
  } : t : e;
}
function to(e, t) {
  return se($t(e), $t(t));
}
function $t(e) {
  if (d(e)) {
    const t = {};
    for (let n = 0; n < e.length; n++)
      t[e[n]] = e[n];
    return t;
  }
  return e;
}
function y(e, t) {
  return e ? [...new Set([].concat(e, t))] : t;
}
function se(e, t) {
  return e ? $(/* @__PURE__ */ Object.create(null), e, t) : t;
}
function It(e, t) {
  return e ? d(e) && d(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : $(
    /* @__PURE__ */ Object.create(null),
    Vt(e),
    Vt(t ?? {})
  ) : t;
}
function no(e, t) {
  if (!e)
    return t;
  if (!t)
    return e;
  const n = $(/* @__PURE__ */ Object.create(null), e);
  for (const o in t)
    n[o] = y(e[o], t[o]);
  return n;
}
const Dt = Ur, ro = (e) => e.__isTeleport, he = Symbol.for("v-fgt"), oo = Symbol.for("v-txt"), mn = Symbol.for("v-cmt"), Oe = [];
let R = null;
function A(e = !1) {
  Oe.push(R = e ? null : []);
}
function so() {
  Oe.pop(), R = Oe[Oe.length - 1] || null;
}
let pe = 1;
function Rt(e) {
  pe += e;
}
function En(e) {
  return e.dynamicChildren = pe > 0 ? R || $n : null, so(), pe > 0 && R && R.push(e), e;
}
function Re(e, t, n, o, r, s) {
  return En(
    Pe(
      e,
      t,
      n,
      o,
      r,
      s,
      !0
      /* isBlock */
    )
  );
}
function de(e, t, n, o, r) {
  return En(
    je(
      e,
      t,
      n,
      o,
      r,
      !0
      /* isBlock: prevent a block from tracking itself */
    )
  );
}
function bn(e) {
  return e ? e.__v_isVNode === !0 : !1;
}
const io = (...e) => vn(
  ...e
), Nn = "__vInternal", wn = ({ key: e }) => e ?? null, ye = ({
  ref: e,
  ref_key: t,
  ref_for: n
}) => (typeof e == "number" && (e = "" + e), e != null ? C(e) || O(e) || b(e) ? { i: N, r: e, k: t, f: !!n } : e : null);
function Pe(e, t = null, n = null, o = 0, r = null, s = e === he ? 0 : 1, i = !1, c = !1) {
  const u = {
    __v_isVNode: !0,
    __v_skip: !0,
    type: e,
    props: t,
    key: t && wn(t),
    ref: t && ye(t),
    scopeId: pn,
    slotScopeIds: null,
    children: n,
    component: null,
    suspense: null,
    ssContent: null,
    ssFallback: null,
    dirs: null,
    transition: null,
    el: null,
    anchor: null,
    target: null,
    targetAnchor: null,
    staticCount: 0,
    shapeFlag: s,
    patchFlag: o,
    dynamicProps: r,
    dynamicChildren: null,
    appContext: null,
    ctx: N
  };
  return c ? (at(u, n), s & 128 && e.normalize(u)) : n && (u.shapeFlag |= C(n) ? 8 : 16), process.env.NODE_ENV !== "production" && u.key !== u.key && _("VNode created with invalid key (NaN). VNode type:", u.type), pe > 0 && // avoid a block node from tracking itself
  !i && // has current parent block
  R && // presence of a patch flag indicates this node needs patching on updates.
  // component nodes also should always be patched, because even if the
  // component doesn't need to update, it needs to persist the instance on to
  // the next vnode so that it can be properly unmounted later.
  (u.patchFlag > 0 || s & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
  // vnode should not be considered dynamic due to handler caching.
  u.patchFlag !== 32 && R.push(u), u;
}
const je = process.env.NODE_ENV !== "production" ? io : vn;
function vn(e, t = null, n = null, o = 0, r = null, s = !1) {
  if ((!e || e === Lr) && (process.env.NODE_ENV !== "production" && !e && _(`Invalid vnode type when creating vnode: ${e}.`), e = mn), bn(e)) {
    const c = Te(
      e,
      t,
      !0
      /* mergeRef: true */
    );
    return n && at(c, n), pe > 0 && !s && R && (c.shapeFlag & 6 ? R[R.indexOf(e)] = c : R.push(c)), c.patchFlag |= -2, c;
  }
  if (Sn(e) && (e = e.__vccOpts), t) {
    t = co(t);
    let { class: c, style: u } = t;
    c && !C(c) && (t.class = nt(c)), w(u) && (Ge(u) && !d(u) && (u = $({}, u)), t.style = tt(u));
  }
  const i = C(e) ? 1 : Br(e) ? 128 : ro(e) ? 64 : w(e) ? 4 : b(e) ? 2 : 0;
  return process.env.NODE_ENV !== "production" && i & 4 && Ge(e) && (e = p(e), _(
    "Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
    `
Component that was made reactive: `,
    e
  )), Pe(
    e,
    t,
    n,
    o,
    r,
    i,
    s,
    !0
  );
}
function co(e) {
  return e ? Ge(e) || Nn in e ? $({}, e) : e : null;
}
function Te(e, t, n = !1) {
  const { props: o, ref: r, patchFlag: s, children: i } = e, c = t ? Me(o || {}, t) : o;
  return {
    __v_isVNode: !0,
    __v_skip: !0,
    type: e.type,
    props: c,
    key: c && wn(c),
    ref: t && t.ref ? (
      // #2078 in the case of <component :is="vnode" ref="extra"/>
      // if the vnode itself already has a ref, cloneVNode will need to merge
      // the refs so the single vnode can be set on multiple refs
      n && r ? d(r) ? r.concat(ye(t)) : [r, ye(t)] : ye(t)
    ) : r,
    scopeId: e.scopeId,
    slotScopeIds: e.slotScopeIds,
    children: process.env.NODE_ENV !== "production" && s === -1 && d(i) ? i.map(On) : i,
    target: e.target,
    targetAnchor: e.targetAnchor,
    staticCount: e.staticCount,
    shapeFlag: e.shapeFlag,
    // if the vnode is cloned with extra props, we can no longer assume its
    // existing patch flag to be reliable and need to add the FULL_PROPS flag.
    // note: preserve flag for fragments since they use the flag for children
    // fast paths only.
    patchFlag: t && e.type !== he ? s === -1 ? 16 : s | 16 : s,
    dynamicProps: e.dynamicProps,
    dynamicChildren: e.dynamicChildren,
    appContext: e.appContext,
    dirs: e.dirs,
    transition: e.transition,
    // These should technically only be non-null on mounted VNodes. However,
    // they *should* be copied for kept-alive vnodes. So we just always copy
    // them since them being non-null during a mount doesn't affect the logic as
    // they will simply be overwritten.
    component: e.component,
    suspense: e.suspense,
    ssContent: e.ssContent && Te(e.ssContent),
    ssFallback: e.ssFallback && Te(e.ssFallback),
    el: e.el,
    anchor: e.anchor,
    ctx: e.ctx,
    ce: e.ce
  };
}
function On(e) {
  const t = Te(e);
  return d(e.children) && (t.children = e.children.map(On)), t;
}
function lo(e = " ", t = 0) {
  return je(oo, null, e, t);
}
function at(e, t) {
  let n = 0;
  const { shapeFlag: o } = e;
  if (t == null)
    t = null;
  else if (d(t))
    n = 16;
  else if (typeof t == "object")
    if (o & 65) {
      const r = t.default;
      r && (r._c && (r._d = !1), at(e, r()), r._c && (r._d = !0));
      return;
    } else {
      n = 32;
      const r = t._;
      !r && !(Nn in t) ? t._ctx = N : r === 3 && N && (N.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
    }
  else
    b(t) ? (t = { default: t, _ctx: N }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [lo(t)]) : n = 8);
  e.children = t, e.shapeFlag |= n;
}
function Me(...e) {
  const t = {};
  for (let n = 0; n < e.length; n++) {
    const o = e[n];
    for (const r in o)
      if (r === "class")
        t.class !== o.class && (t.class = nt([t.class, o.class]));
      else if (r === "style")
        t.style = tt([t.style, o.style]);
      else if (Dn(r)) {
        const s = t[r], i = o[r];
        i && s !== i && !(d(s) && s.includes(i)) && (t[r] = s ? [].concat(s, i) : i);
      } else
        r !== "" && (t[r] = o[r]);
  }
  return t;
}
let J = null;
const uo = () => J || N;
let ft, k, Pt = "__VUE_INSTANCE_SETTERS__";
(k = Be()[Pt]) || (k = Be()[Pt] = []), k.push((e) => J = e), ft = (e) => {
  k.length > 1 ? k.forEach((t) => t(e)) : k[0](e);
};
const Tt = (e) => {
  ft(e), e.scope.on();
}, ao = () => {
  J && J.scope.off(), ft(null);
};
function fo(e) {
  return e.vnode.shapeFlag & 4;
}
function Mt(e) {
  return e.attrsProxy || (e.attrsProxy = new Proxy(
    e.attrs,
    process.env.NODE_ENV !== "production" ? {
      get(t, n) {
        return v(e, "get", "$attrs"), t[n];
      },
      set() {
        return _("setupContext.attrs is readonly."), !1;
      },
      deleteProperty() {
        return _("setupContext.attrs is readonly."), !1;
      }
    } : {
      get(t, n) {
        return v(e, "get", "$attrs"), t[n];
      }
    }
  ));
}
function po(e) {
  return e.slotsProxy || (e.slotsProxy = new Proxy(e.slots, {
    get(t, n) {
      return v(e, "get", "$slots"), t[n];
    }
  }));
}
function ho(e) {
  const t = (n) => {
    if (process.env.NODE_ENV !== "production" && (e.exposed && _("expose() should be called only once per setup()."), n != null)) {
      let o = typeof n;
      o === "object" && (d(n) ? o = "array" : O(n) && (o = "ref")), o !== "object" && _(
        `expose() should be passed a plain object, received ${o}.`
      );
    }
    e.exposed = n || {};
  };
  return process.env.NODE_ENV !== "production" ? Object.freeze({
    get attrs() {
      return Mt(e);
    },
    get slots() {
      return po(e);
    },
    get emit() {
      return (n, ...o) => e.emit(n, ...o);
    },
    expose: t
  }) : {
    get attrs() {
      return Mt(e);
    },
    slots: e.slots,
    emit: e.emit,
    expose: t
  };
}
function _o(e) {
  if (e.exposed)
    return e.exposeProxy || (e.exposeProxy = new Proxy(Or(gr(e.exposed)), {
      get(t, n) {
        if (n in t)
          return t[n];
        if (n in ce)
          return ce[n](e);
      },
      has(t, n) {
        return n in t || n in ce;
      }
    }));
}
const go = /(?:^|[-_])(\w)/g, mo = (e) => e.replace(go, (t) => t.toUpperCase()).replace(/[-_]/g, "");
function pt(e, t = !0) {
  return b(e) ? e.displayName || e.name : e.name || t && e.__name;
}
function yn(e, t, n = !1) {
  let o = pt(t);
  if (!o && t.__file) {
    const r = t.__file.match(/([^/\\]+)\.\w+$/);
    r && (o = r[1]);
  }
  if (!o && e && e.parent) {
    const r = (s) => {
      for (const i in s)
        if (s[i] === t)
          return i;
    };
    o = r(
      e.components || e.parent.type.components
    ) || r(e.appContext.components);
  }
  return o ? mo(o) : n ? "App" : "Anonymous";
}
function Sn(e) {
  return b(e) && "__vccOpts" in e;
}
function He(e) {
  return !!(e && e.__v_isShallow);
}
function Eo() {
  if (process.env.NODE_ENV === "production" || typeof window > "u")
    return;
  const e = { style: "color:#3ba776" }, t = { style: "color:#0b1bc9" }, n = { style: "color:#b62e24" }, o = { style: "color:#9d288c" }, r = {
    header(l) {
      return w(l) ? l.__isVue ? ["div", e, "VueInstance"] : O(l) ? [
        "div",
        {},
        ["span", e, h(l)],
        "<",
        c(l.value),
        ">"
      ] : Q(l) ? [
        "div",
        {},
        ["span", e, He(l) ? "ShallowReactive" : "Reactive"],
        "<",
        c(l),
        `>${W(l) ? " (readonly)" : ""}`
      ] : W(l) ? [
        "div",
        {},
        ["span", e, He(l) ? "ShallowReadonly" : "Readonly"],
        "<",
        c(l),
        ">"
      ] : null : null;
    },
    hasBody(l) {
      return l && l.__isVue;
    },
    body(l) {
      if (l && l.__isVue)
        return [
          "div",
          {},
          ...s(l.$)
        ];
    }
  };
  function s(l) {
    const f = [];
    l.type.props && l.props && f.push(i("props", p(l.props))), l.setupState !== T && f.push(i("setup", l.setupState)), l.data !== T && f.push(i("data", p(l.data)));
    const g = u(l, "computed");
    g && f.push(i("computed", g));
    const x = u(l, "inject");
    return x && f.push(i("injected", x)), f.push([
      "div",
      {},
      [
        "span",
        {
          style: o.style + ";opacity:0.66"
        },
        "$ (internal): "
      ],
      ["object", { object: l }]
    ]), f;
  }
  function i(l, f) {
    return f = $({}, f), Object.keys(f).length ? [
      "div",
      { style: "line-height:1.25em;margin-bottom:0.6em" },
      [
        "div",
        {
          style: "color:#476582"
        },
        l
      ],
      [
        "div",
        {
          style: "padding-left:1.25em"
        },
        ...Object.keys(f).map((g) => [
          "div",
          {},
          ["span", o, g + ": "],
          c(f[g], !1)
        ])
      ]
    ] : ["span", {}];
  }
  function c(l, f = !0) {
    return typeof l == "number" ? ["span", t, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", o, l] : w(l) ? ["object", { object: f ? p(l) : l }] : ["span", n, String(l)];
  }
  function u(l, f) {
    const g = l.type;
    if (b(g))
      return;
    const x = {};
    for (const V in l.ctx)
      a(g, V, f) && (x[V] = l.ctx[V]);
    return x;
  }
  function a(l, f, g) {
    const x = l[g];
    if (d(x) && x.includes(f) || w(x) && f in x || l.extends && a(l.extends, f, g) || l.mixins && l.mixins.some((V) => a(V, f, g)))
      return !0;
  }
  function h(l) {
    return He(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
  }
  window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
}
function bo() {
  Eo();
}
process.env.NODE_ENV !== "production" && bo();
const No = {
  key: 0,
  class: "pro-tabs-content"
}, wo = /* @__PURE__ */ hn({
  __name: "index",
  props: {
    tabs: {},
    request: { type: Function },
    tabsAttrs: {},
    defaultValue: {}
  },
  setup(e) {
    const t = e, n = gn();
    return (o, r) => {
      const s = Ie("t-tab-panel"), i = Ie("t-tabs");
      return A(), de(i, Me({
        defaultValue: t.defaultValue
      }, t.tabsAttrs), {
        default: M(() => [
          (A(!0), Re(he, null, Yr(t.tabs, (c) => (A(), de(s, Me(c.tabPanelAttrs, {
            value: c.key,
            label: c.label
          }), {
            default: M(() => [
              j(n).default ? L(o.$slots, "default", {
                key: c.key
              }) : (A(), Re("p", No, Ue(c.children), 1))
            ]),
            _: 2
          }, 1040, ["value", "label"]))), 256))
        ]),
        _: 3
      }, 16, ["defaultValue"]);
    };
  }
});
const vo = { class: "pro-card" }, Oo = { class: "pro-card-title" }, yo = { key: 0 }, So = { class: "pro-card-avatar" }, xo = /* @__PURE__ */ hn({
  __name: "index",
  props: {
    title: { default: "标题" },
    subTitle: {},
    tabs: {},
    tabKey: {},
    headerBordered: { type: Boolean, default: !0 },
    bordered: { type: Boolean, default: !0 },
    tabsAttrs: {},
    avatarAttrs: { default: () => ({
      size: "large",
      shape: "round"
    }) },
    avatarImage: {}
  },
  emits: ["update:tabKey"],
  setup(e, { emit: t }) {
    const n = e, o = gn(), r = br("");
    return yt(() => n.tabKey, (s) => {
      r.value = s;
    }), yt(r, (s) => t("update:tabKey", s)), (s, i) => {
      const c = Ie("t-avatar"), u = Ie("t-card");
      return A(), Re("div", vo, [
        je(u, {
          headerBordered: n.headerBordered,
          bordered: n.bordered
        }, xt({
          title: M(() => [
            Pe("div", Oo, Ue(n.title), 1)
          ]),
          subtitle: M(() => [
            j(o).subTitle ? L(s.$slots, "subTitle", { key: 1 }, void 0, !0) : (A(), Re("div", yo, Ue(n.subTitle), 1))
          ]),
          default: M(() => [
            n.tabs ? (A(), de(wo, {
              key: 1,
              tabAttrs: n.tabsAttrs,
              tabs: n.tabs,
              tabKey: r.value,
              "onUpdate:tabKey": i[0] || (i[0] = (a) => r.value = a)
            }, xt({ _: 2 }, [
              j(o).tabContent ? {
                name: "default",
                fn: M(({ key: a }) => [
                  L(s.$slots, "tabContent", { key: a }, void 0, !0)
                ]),
                key: "0"
              } : void 0
            ]), 1032, ["tabAttrs", "tabs", "tabKey"])) : L(s.$slots, "default", { key: 0 }, void 0, !0)
          ]),
          _: 2
        }, [
          j(o).actions ? {
            name: "actions",
            fn: M(() => [
              L(s.$slots, "actions", {}, void 0, !0)
            ]),
            key: "0"
          } : void 0,
          n.avatarImage || j(o).avatar ? {
            name: "avatar",
            fn: M(() => [
              Pe("div", So, [
                j(o).avatar ? L(s.$slots, "avatar", { key: 1 }, void 0, !0) : (A(), de(c, Me({ key: 0 }, n.avatarAttrs, {
                  image: n.avatarImage
                }), null, 16, ["image"]))
              ])
            ]),
            key: "1"
          } : void 0,
          j(o).footer ? {
            name: "footer",
            fn: M(() => [
              L(s.$slots, "footer", {}, void 0, !0)
            ]),
            key: "2"
          } : void 0
        ]), 1032, ["headerBordered", "bordered"])
      ]);
    };
  }
});
const Vo = (e, t) => {
  const n = e.__vccOpts || e;
  for (const [o, r] of t)
    n[o] = r;
  return n;
}, Co = /* @__PURE__ */ Vo(xo, [["__scopeId", "data-v-cd0023cf"]]), Io = {
  install(e) {
    e.component("ProCard", Co);
  }
};
export {
  Io as default
};
